<!DOCTYPE html>
<html lang="zh-CN">

<!-- Head tag -->
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <!--Description-->

  <meta name="description" content="海风作品，分享Web开发中的技术文章，分享生活中的灵感与创意，鼓励阅读，不读书则愚。">


  <!--Author-->

  <meta name="author" content="Gallen Hu">


  <!--Open Graph Title-->

      <meta property="og:title" content="海风作品">

  <!--Open Graph Description-->

      <meta property="og:description" content="海风作品，分享Web开发中的技术文章，分享生活中的灵感与创意，鼓励阅读，不读书则愚。">

  <!--Open Graph Site Name-->
  <meta property="og:site_name" content="海风作品">
  <!--Type page-->

      <meta property="og:type" content="website">

  <!--Page Cover-->


  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  <!-- Title -->

  <title>海风作品 - 分享代码与创意</title>


  <link rel="shortcut icon" href="https://hexo.io/icon/favicon-96x96.png">

  <!-- Custom CSS/Sass -->
  <link rel="stylesheet" href="/css/style.css">

  <!----------------------------
  https://github.com/GallenHu/hexo-theme-Daily

 _____            _   _
|  __ \          (_) | |
| |  | |   __ _   _  | |  _   _
| |  | |  / _` | | | | | | | | |
| |__| | | (_| | | | | | | |_| |
|_____/   \__,_| |_| |_|  \__, |
                          __/ |
                         |___/

    --------------------------->

</head>


<body>

  <!-- Nav -->
  <header class="site-header">
  <div class="header-inside">
    <div class="logo">
      <a href="/" rel="home">

        <img src="https://static.hinpc.com/images/logo-hexo-20201102095015.svg" alt="海风" height="60">

      </a>
    </div>
    <!-- Navigation -->
    <nav class="navbar">
      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse">
        <ul class="navbar-nav">


            <li>
              <a href="/.">

                  Home

              </a>
            </li>

            <li>
              <a href="/archives">

                  Archive

              </a>
            </li>

            <li>
              <a href="/about">

                  About

              </a>
            </li>

        </ul>
      </div>
      <!-- /.navbar-collapse -->
    </nav>
    <div class="button-wrap">
      <button class="menu-toggle">Primary Menu</button>
    </div>
  </div>
</header>


  <!-- Main Content -->
  <div class="site-content home">
  <main class="content-area">


        <div class="even">


<!-- 首页模板 -->
<div class="container">
  <article class="post">




      <a href="/2017/09/use-jwts-to-auth-api/">
          <img src="https://i.loli.net/2020/03/11/lXWRdjhJBYvV3U9.png" alt="使用 JWTs 做浏览器端 RESTful API 认证" class="attachment-post-thumbnail">
        </a>

    <h1 class="entry-title">
      <a href="/2017/09/use-jwts-to-auth-api/" rel="bookmark">
        使用 JWTs 做浏览器端 RESTful API 认证
      </a>
    </h1>

    <div class="entry-content">
      <p>
        <p>梳理了一下做 RESTful API 认证的流程，使用 Node 结合 <code>passport.js</code>，最终实现：router 中间件做认证，通过认证后续流程可以获取到认证的用户信息。</p>
      </p>
    </div>


    <p class="posted-on">
    2024-09-09
    </p>
    <div class="tags-links">

      <a href="/tags/RESTful/" rel="tag">
        RESTful
      </a>

      <a href="/tags/JWTs/" rel="tag">
        JWTs
      </a>

    </div>
  </article>
</div>
        </div>



        <div class="odd">


<!-- 首页模板 -->
<div class="container">
  <article class="post">




      <a href="/2017/09/hexo-renderer-sass-install-in-china/">
          <img src="https://i.loli.net/2020/03/11/zKucE7eLRVyaUQ1.jpg" alt="hexo-renderer-sass 安装失败解决方法" class="attachment-post-thumbnail">
        </a>

    <h1 class="entry-title">
      <a href="/2017/09/hexo-renderer-sass-install-in-china/" rel="bookmark">
        hexo-renderer-sass 安装失败解决方法
      </a>
    </h1>

    <div class="entry-content">
      <p>
        <p><code>npm install</code> 的时候报错:<br><code>npm ERR! Failed at the node-sass@3.8.0 install script &#39;node scripts/install.js&#39;.</code></p>
      </p>
    </div>


    <p class="posted-on">
    2017-09-04
    </p>
    <div class="tags-links">

      <a href="/tags/node-sass/" rel="tag">
        node-sass
      </a>

      <a href="/tags/npm/" rel="tag">
        npm
      </a>

      <a href="/tags/sass/" rel="tag">
        sass
      </a>

    </div>
  </article>
</div>
        </div>

  </main>
</div>

  <!-- Footer -->
  <!-- Footer-widgets -->
<div class="footer-widgets">
  <div class="row inside-wrapper">
    <div class="col-1-3">
      <aside>
        <h1 class="widget-title">关于本站</h1>
        <div class="custom-widget-content">

          <p align="left">分享Web开发中的技术文章，分享生活中的灵感与创意，鼓励阅读，不读书则愚。</p>
        </div>
      </aside>
    </div>
    <div class="col-1-3">
      <aside>
        <h1 class="widget-title">与我联系</h1>
        <div class="widget-text">


              <a href="https://github.com/GallenHu" class="icon icon-github" target="_blank">github</a>

              <a href="mailto:gallenhu@foxmail.com" class="icon icon-mail" target="_blank">mail</a>


        </div>
      </aside>
    </div>
    <div class="col-1-3">
      <aside>
        <h1 class="widget-title">站内搜索</h1>
        <div class="widget-text">
          <form onSubmit="return appDaily.submitSearch('')">
            <p>
              <input type="text" placeholder="search..." id="homeSearchInput">
            </p>
            <!-- <input type="submit" value="GO"> -->
          </form>
        </div>
      </aside>
    </div>
  </div>
</div>
<!-- Footer -->
<footer class="site-info">
  <p>
    <span>海风作品 &copy; 2019</span>

      <span class="split">|</span>
      <span><a href="https://beian.miit.gov.cn/" target="_blank">渝ICP备15008526号-1</a>
<a rel="nofollow" target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=50019002500988">
<img src="//as.zbjimg.com/static/nodejs-zbj-utopiacs-web/widget/footer/img/icp_d0289dc.png" style="">渝公网安备 50019002500988号</a>
      </span> <br>
      <span>本网站由</span>
      <a style="vertical-align: middle;display: inline-block;" href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral"><img style="height: 40px;" src="https://i.loli.net/2020/03/11/IGASBf3HokvyFhJ.png" alt="又拍云"></a>
      <span>提供CDN加速/云存储服务</span>
  </p>
</footer>


  <!-- After footer scripts -->
  <!-- scripts -->
<script src="/js/app.js"></script>


<!-- baidu_analytics start -->
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?329f0d1bce0a1973b19c15ff3c8c3bc8";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- baidu_analytics end -->




</body>

</html>

